package xcmg.device.dao.mapper.delivery;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.delivery.LogisticsBasicDataDO;
import xcmg.device.service.vo.delivery.LogisticsBasicDataVO;

import java.util.List;

/**
 * 物流基础数据维护Mapper
 * @author huhuawei
 * LogisticsBasicDataDO
 */
@Mapper
public interface LogisticsBasicDataMapper {
    /**
     * 增加
     * @param logisticsBasicDataVO
     * @return
     */
    int add(LogisticsBasicDataVO logisticsBasicDataVO);

    /**
     * 删除
     * @param id
     * @return
     */
    int deleteByPrimaryKey(@Param("id") String id);

    /**
     * 更新
     * @param logisticsBasicDataVO
     * @return
     */
    int update(LogisticsBasicDataVO logisticsBasicDataVO);

    /**
     * 列表
     * @param model
     * @return
     */
    List<LogisticsBasicDataDO> list(LogisticsBasicDataVO model);

    /**
     * 根据ID查询单个信息
     * @param id
     * @return
     */
    LogisticsBasicDataDO item(String id);

    int countByCondition(LogisticsBasicDataVO model);
}